<div class="form-group">
  <label class="col-sm-3 control-label">Código AFIP</label>
  <div class="col-sm-5">
    <input type='text' class='form-control' name='txt_codigoAFIP' id ='txt_codigoAFIP' placeholder='Cód. AFIP' value='<?=$objEntidad->codigoAFIP ?>'>
  </div>
</div>

<div class="form-group">
  <label class="col-sm-3 control-label">Nombre</label>
  <div class="col-sm-5">
    <input type='text' class='form-control' name='txt_nombre' id ='txt_nombre' placeholder='Provincia' value='<?=$objEntidad->nombre ?>'>
  </div>
</div>

<div class="form-group">
  <label class="col-sm-3 control-label">País</label>
  <div class="col-sm-5"> 
    <?php
    $opcionesPais = array(); 
    if(isset($listado_paises)){ 
      $defaultSelection = $objEntidad->ubic_pais_id;
      foreach ($listado_paises as $pais) { 
        $opcionesPais[$pais->id] = $pais->nombre;
        if($defaultSelection == 0) $defaultSelection = $pais->id;
      }
    
      echo form_dropdown('sel_pais', $opcionesPais, $defaultSelection, "id = sel_pais, class = 'form-control'");
    } ?> 
    </div>
</div>